#include "configgame.h"
#include "ui_configgame.h"

ConfigGame::ConfigGame(Fenetre* f, QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ConfigGame),
    fen(f)
{
    ui->setupUi(this);

    QObject::connect(ui->bCreer, SIGNAL(clicked()), fen, SLOT(sendNewGame()));
}

ConfigGame::~ConfigGame()
{
    delete ui;
}

QString ConfigGame::getNomPartie()
{
    return ui->leNomPartie->text();
}

sf::Uint8 ConfigGame::getNbJoueurs()
{
    return ui->comboBox->currentText().toInt();
}
